package praktikumid.w06.p3;

public class Motorcycle extends Vehicle {
	public Motorcycle(String registrationNumber, boolean hasSidecar) {
		super(registrationNumber);
		this.hasSidecar = hasSidecar;
	}

	public Motorcycle(String registrationNumber) {
		super(registrationNumber);
		this.hasSidecar = false;
	}

	/**
	 * @return the hasSidecar
	 */
	public boolean hasSidecar() {
		return hasSidecar;
	}

	/**
	 * @param hasSidecar the hasSidecar to set
	 */
	public void setHasSidecar(boolean hasSidecar) {
		this.hasSidecar = hasSidecar;
	}

	private boolean hasSidecar;
}
